package com.platform.common.util.query.constant;

/**
 * 操作符
 * 
 */
public enum Operator {
	// public final static String equal = "equal"; //等于
	// public final static String greater = "greater"; //大于
	// public final static String greater_or_equal = "greater_or_equal"; //大于等于
	// public final static String less = "less"; //小于
	// public final static String less_or_equal = "less_or_equal"; //小于等于
	// public final static String not_equal = "not_euqal"; //不等于
	// public final static String leftMatch = "leftMatch"; //左匹配
	// public final static String rightMatch = "rightMatch"; //右匹配
	// public final static String contain = "contain"; //包含
	// public final static String splitMatch = "splitMatch"; //分词匹配
	// public final static String and = "and"; //并且
	// public final static String or = "or"; //或者

	equal("=", 1),
	greater(">",2),
	greater_or_equal(">=",3),
	less("<",4),
	less_or_equal("<=",5),
	not_equal("!=",6),
	leftMatch("like",7),
//	rightMatch("like",8),
//	contain("like",9),
//	splitMatch("like",10),
	and("and",20),
	or("or",21);

	private String key;
	private int value;

	Operator(String key, int value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public int getValue() {
		return value;
	}

}
